class Connection:
    def __init__(self, cost, fromNode, endNode):
        self.cost = cost
        self.fromNode = fromNode
        self.endNode = endNode
        
    def getFromNode(self):
        return self.fromNode
    
    def getEndNode(self):
        return self.endNode
    
    def getCost(self):
        return self.cost